package com.investmenttechnologyservices.test;

import java.util.Set;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;

public class UserServiceMock implements UserService {
	
	private User user = new User("test@example.com", "gmail.com", "test_user_id");

	@Override
	public String createLoginURL(String destinationURL) {
		throw new UnsupportedOperationException();
	}

	@Override
	public String createLoginURL(String destinationURL, String authDomain) {
		throw new UnsupportedOperationException();
	}

	@Override
	public String createLoginURL(String destinationURL, String authDomain,
			String federatedIdentity, Set<String> attributesRequest) {
		throw new UnsupportedOperationException();
	}

	@Override
	public String createLogoutURL(String destinationURL) {
		throw new UnsupportedOperationException();
	}

	@Override
	public String createLogoutURL(String destinationURL, String authDomain) {
		throw new UnsupportedOperationException();
	}

	@Override
	public User getCurrentUser() {
		return user;
	}

	@Override
	public boolean isUserAdmin() {
		return false;
	}

	@Override
	public boolean isUserLoggedIn() {
		return true;
	}

}
